#include "smartpicture.h"
#include "../../../core/command.h"
using namespace Commands;
using namespace Commands::Core;

SmartPicture::SmartPicture(const char* path, int x, int y,  int L, int id)
: DiasPicture(path, x, y, L, id)
{}

SmartPicture::~SmartPicture(){}

void SmartPicture::AddCommand(const int queueId, const Command<IGraphicElement>& command)
{
    Command<IGraphicElement>* _command = command.Copy();
    _command->Attach(this);
    AddCommand(queueId, _command);
}
